package cn.wolfcode.luowowo.article.mapper;

import cn.wolfcode.luowowo.article.domain.Answer;
import cn.wolfcode.luowowo.article.query.AnswerQuery;
import org.apache.ibatis.annotations.Param;

import java.util.HashMap;
import java.util.List;

public interface AnswerMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Answer record);

    Answer selectByPrimaryKey(Long id);

    List<Answer> selectAll();

    int updateByPrimaryKey(Answer record);

    List<Answer> query(AnswerQuery qo);

    void addThumbup(@Param("answerId") Long answerId, @Param("num") int num);

    List<HashMap<String,Object>> replynumTop();

    List<HashMap<String,Object>> thumbsupnumTop();

}